package api

import (
	"slgw_web/serial/util"

	"openzbox.com/frame/echo"
	models "openzbox.com/frame/echo/models/sl_gw01"
	"openzbox.com/frame/echo/response"
)

func WsWriteMessage(ctx echo.Context) error {
	var req models.LouKouDataRequest
	if err := ctx.Bind(&req); err != nil {
		return response.FailResult(1, err.Error(), ctx)
	}
	util.WriteMessage(req.LouKouDataT, "3")
	return nil
}
